public class TeacherLaoLi extends Teacher {
    public String work;
    public String cls;
    public TeacherLaoLi(String name,int age,int years,String sex,String work,String cls){
        super(name,age,years,sex);
        this.work=work;
        this.cls=cls;
    }
    public void show1(){
        System.out.println("教师："+super.getName()+";\n年龄："+super.getAge()+"岁;\n教龄："+super.getYears()+"年;\n性别："+super.getSex()+";\n职称："+work+";\n课程："+cls);
    }
}
